.class Lcom/example/m6shop/HistoryActivity$8;
.super Landroid/os/Handler;
.source "HistoryActivity.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/example/m6shop/HistoryActivity;->onCreate(Landroid/os/Bundle;)V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lcom/example/m6shop/HistoryActivity;


# direct methods
.method constructor <init>(Lcom/example/m6shop/HistoryActivity;)V
    .locals 0

    .prologue
    .line 1
    iput-object p1, p0, Lcom/example/m6shop/HistoryActivity$8;->this$0:Lcom/example/m6shop/HistoryActivity;

    .line 230
    invoke-direct {p0}, Landroid/os/Handler;-><init>()V

    return-void
.end method

.method static synthetic access$0(Lcom/example/m6shop/HistoryActivity$8;)Lcom/example/m6shop/HistoryActivity;
    .locals 1

    .prologue
    .line 230
    iget-object v0, p0, Lcom/example/m6shop/HistoryActivity$8;->this$0:Lcom/example/m6shop/HistoryActivity;

    return-object v0
.end method


# virtual methods
.method public handleMessage(Landroid/os/Message;)V
    .locals 7
    .param p1, "msg"    # Landroid/os/Message;

    .prologue
    const/4 v6, 0x1

    .line 232
    invoke-super {p0, p1}, Landroid/os/Handler;->handleMessage(Landroid/os/Message;)V

    .line 233
    iget v2, p1, Landroid/os/Message;->arg1:I

    sparse-switch v2, :sswitch_data_0

    .line 303
    :goto_0
    :sswitch_0
    return-void

    .line 237
    :sswitch_1
    iget-object v2, p0, Lcom/example/m6shop/HistoryActivity$8;->this$0:Lcom/example/m6shop/HistoryActivity;

    const-string v3, "\u767b\u9646\u8fd4\u56de\u4fe1\u606f"

    const-string v4, "\u767b\u9646\u6210\u529f"

    invoke-static {v2, v3, v4}, Lmyclass/Util;->alertdialog(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)V

    goto :goto_0

    .line 244
    :sswitch_2
    iget-object v2, p0, Lcom/example/m6shop/HistoryActivity$8;->this$0:Lcom/example/m6shop/HistoryActivity;

    const-string v3, "\u6570\u636e\u83b7\u53d6\u5931\u8d25"

    const-string v4, "\u5c06\u68c0\u67e5\u7f51\u7edc\u8fde\u63a5\u6216\u8005\u8054\u7cfb\u5ba2\u670d"

    invoke-static {v2, v3, v4}, Lmyclass/Util;->alertdialog(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)V

    goto :goto_0

    .line 252
    :sswitch_3
    const/4 v1, 0x0

    .local v1, "i":I
    :goto_1
    iget-object v2, p0, Lcom/example/m6shop/HistoryActivity$8;->this$0:Lcom/example/m6shop/HistoryActivity;

    # getter for: Lcom/example/m6shop/HistoryActivity;->templs:Ljava/util/List;
    invoke-static {v2}, Lcom/example/m6shop/HistoryActivity;->access$13(Lcom/example/m6shop/HistoryActivity;)Ljava/util/List;

    move-result-object v2

    invoke-interface {v2}, Ljava/util/List;->size()I

    move-result v2

    if-lt v1, v2, :cond_1

    .line 255
    sget-object v2, Ljava/lang/System;->out:Ljava/io/PrintStream;

    const-string v3, "\u5904\u7406\u6570\u636e:\u8f6c\u6362\u6570\u636e\u5185\u5bb9"

    invoke-virtual {v2, v3}, Ljava/io/PrintStream;->println(Ljava/lang/String;)V

    .line 256
    iget-object v2, p0, Lcom/example/m6shop/HistoryActivity$8;->this$0:Lcom/example/m6shop/HistoryActivity;

    # getter for: Lcom/example/m6shop/HistoryActivity;->page:I
    invoke-static {v2}, Lcom/example/m6shop/HistoryActivity;->access$15(Lcom/example/m6shop/HistoryActivity;)I

    move-result v2

    if-ne v2, v6, :cond_0

    .line 257
    iget-object v2, p0, Lcom/example/m6shop/HistoryActivity$8;->this$0:Lcom/example/m6shop/HistoryActivity;

    # getter for: Lcom/example/m6shop/HistoryActivity;->ls:Ljava/util/List;
    invoke-static {v2}, Lcom/example/m6shop/HistoryActivity;->access$14(Lcom/example/m6shop/HistoryActivity;)Ljava/util/List;

    move-result-object v2

    invoke-interface {v2}, Ljava/util/List;->clear()V

    .line 259
    :cond_0
    const/4 v1, 0x0

    :goto_2
    iget-object v2, p0, Lcom/example/m6shop/HistoryActivity$8;->this$0:Lcom/example/m6shop/HistoryActivity;

    # getter for: Lcom/example/m6shop/HistoryActivity;->templs:Ljava/util/List;
    invoke-static {v2}, Lcom/example/m6shop/HistoryActivity;->access$13(Lcom/example/m6shop/HistoryActivity;)Ljava/util/List;

    move-result-object v2

    invoke-interface {v2}, Ljava/util/List;->size()I

    move-result v2

    if-lt v1, v2, :cond_2

    .line 263
    iget-object v2, p0, Lcom/example/m6shop/HistoryActivity$8;->this$0:Lcom/example/m6shop/HistoryActivity;

    # getter for: Lcom/example/m6shop/HistoryActivity;->page:I
    invoke-static {v2}, Lcom/example/m6shop/HistoryActivity;->access$15(Lcom/example/m6shop/HistoryActivity;)I

    move-result v2

    if-ne v2, v6, :cond_3

    .line 264
    iget-object v2, p0, Lcom/example/m6shop/HistoryActivity$8;->this$0:Lcom/example/m6shop/HistoryActivity;

    new-instance v3, Ladapter/BalanceAdapter;

    iget-object v4, p0, Lcom/example/m6shop/HistoryActivity$8;->this$0:Lcom/example/m6shop/HistoryActivity;

    iget-object v5, p0, Lcom/example/m6shop/HistoryActivity$8;->this$0:Lcom/example/m6shop/HistoryActivity;

    # getter for: Lcom/example/m6shop/HistoryActivity;->ls:Ljava/util/List;
    invoke-static {v5}, Lcom/example/m6shop/HistoryActivity;->access$14(Lcom/example/m6shop/HistoryActivity;)Ljava/util/List;

    move-result-object v5

    invoke-direct {v3, v4, v5}, Ladapter/BalanceAdapter;-><init>(Landroid/content/Context;Ljava/util/List;)V

    iput-object v3, v2, Lcom/example/m6shop/HistoryActivity;->bd:Ladapter/BalanceAdapter;

    .line 265
    iget-object v2, p0, Lcom/example/m6shop/HistoryActivity$8;->this$0:Lcom/example/m6shop/HistoryActivity;

    iget-object v2, v2, Lcom/example/m6shop/HistoryActivity;->lv1:Lorg/com/cctest/view/XListView;

    iget-object v3, p0, Lcom/example/m6shop/HistoryActivity$8;->this$0:Lcom/example/m6shop/HistoryActivity;

    iget-object v3, v3, Lcom/example/m6shop/HistoryActivity;->bd:Ladapter/BalanceAdapter;

    invoke-virtual {v2, v3}, Lorg/com/cctest/view/XListView;->setAdapter(Landroid/widget/ListAdapter;)V

    .line 266
    iget-object v2, p0, Lcom/example/m6shop/HistoryActivity$8;->this$0:Lcom/example/m6shop/HistoryActivity;

    iget-object v2, v2, Lcom/example/m6shop/HistoryActivity;->lv1:Lorg/com/cctest/view/XListView;

    invoke-virtual {v2, v6}, Lorg/com/cctest/view/XListView;->setPullLoadEnable(Z)V

    .line 272
    :goto_3
    iget-object v2, p0, Lcom/example/m6shop/HistoryActivity$8;->this$0:Lcom/example/m6shop/HistoryActivity;

    iget-object v2, v2, Lcom/example/m6shop/HistoryActivity;->lv1:Lorg/com/cctest/view/XListView;

    new-instance v3, Lcom/example/m6shop/HistoryActivity$8$1;

    invoke-direct {v3, p0}, Lcom/example/m6shop/HistoryActivity$8$1;-><init>(Lcom/example/m6shop/HistoryActivity$8;)V

    invoke-virtual {v2, v3}, Lorg/com/cctest/view/XListView;->setOnItemClickListener(Landroid/widget/AdapterView$OnItemClickListener;)V

    goto :goto_0

    .line 253
    :cond_1
    iget-object v2, p0, Lcom/example/m6shop/HistoryActivity$8;->this$0:Lcom/example/m6shop/HistoryActivity;

    # getter for: Lcom/example/m6shop/HistoryActivity;->ls:Ljava/util/List;
    invoke-static {v2}, Lcom/example/m6shop/HistoryActivity;->access$14(Lcom/example/m6shop/HistoryActivity;)Ljava/util/List;

    move-result-object v3

    iget-object v2, p0, Lcom/example/m6shop/HistoryActivity$8;->this$0:Lcom/example/m6shop/HistoryActivity;

    # getter for: Lcom/example/m6shop/HistoryActivity;->templs:Ljava/util/List;
    invoke-static {v2}, Lcom/example/m6shop/HistoryActivity;->access$13(Lcom/example/m6shop/HistoryActivity;)Ljava/util/List;

    move-result-object v2

    invoke-interface {v2, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Lbean/Blanbaen;

    invoke-interface {v3, v2}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 252
    add-int/lit8 v1, v1, 0x1

    goto :goto_1

    .line 260
    :cond_2
    iget-object v2, p0, Lcom/example/m6shop/HistoryActivity$8;->this$0:Lcom/example/m6shop/HistoryActivity;

    # getter for: Lcom/example/m6shop/HistoryActivity;->templs:Ljava/util/List;
    invoke-static {v2}, Lcom/example/m6shop/HistoryActivity;->access$13(Lcom/example/m6shop/HistoryActivity;)Ljava/util/List;

    move-result-object v2

    invoke-interface {v2, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lbean/Blanbaen;

    .line 261
    .local v0, "cc":Lbean/Blanbaen;
    iget-object v2, p0, Lcom/example/m6shop/HistoryActivity$8;->this$0:Lcom/example/m6shop/HistoryActivity;

    # getter for: Lcom/example/m6shop/HistoryActivity;->ls:Ljava/util/List;
    invoke-static {v2}, Lcom/example/m6shop/HistoryActivity;->access$14(Lcom/example/m6shop/HistoryActivity;)Ljava/util/List;

    move-result-object v2

    invoke-interface {v2, v0}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 259
    add-int/lit8 v1, v1, 0x1

    goto :goto_2

    .line 268
    .end local v0    # "cc":Lbean/Blanbaen;
    :cond_3
    iget-object v2, p0, Lcom/example/m6shop/HistoryActivity$8;->this$0:Lcom/example/m6shop/HistoryActivity;

    iget-object v2, v2, Lcom/example/m6shop/HistoryActivity;->bd:Ladapter/BalanceAdapter;

    invoke-virtual {v2}, Ladapter/BalanceAdapter;->notifyDataSetChanged()V

    goto :goto_3

    .line 233
    :sswitch_data_0
    .sparse-switch
        0x0 -> :sswitch_0
        0x1 -> :sswitch_0
        0x2 -> :sswitch_1
        0x3 -> :sswitch_0
        0x4 -> :sswitch_2
        0x14 -> :sswitch_3
    .end sparse-switch
.end method
